export default {
    expo: {
        name: "诺语",
        slug: "cirno-chat-mobile-frontend",
        version: "1.0.0",
        orientation: "portrait",
        icon: "./assets/icon.png",
        scheme: "cirnochat",
        userInterfaceStyle: "automatic",
        newArchEnabled: true,
        owner: "flanchan",
        splash: {
            image: "./assets/splash.png",
            resizeMode: "cover",
            backgroundColor: "#ffffff"
        },
        ios: {
            supportsTablet: true
        },
        android: {
            userInterfaceStyle: "automatic",
            package: "com.gitee.cirnochat",
            adaptiveIcon: {
                foregroundImage: "./assets/adaptive.png",
                backgroundColor: "#ffffff",
            },
            permissions: [
                "android.permission.READ_MEDIA_IMAGES", //读取媒体图片
                "android.permission.READ_MEDIA_VIDEO", //读取媒体视频
                "android.permission.READ_EXTERNAL_STORAGE", //读取外部储存
                "android.permission.WRITE_EXTERNAL_STORAGE", //写入外部储存
                "android.permission.ACCESS_MEDIA_LOCATION",//访问媒体位置
            ],
        },
        web: {
            favicon: "./assets/favicon.png"
        },
        plugins: [
            [
                "expo-build-properties",
                {
                    "android": {
                        "compileSdkVersion": 35,
                        "targetSdkVersion": 35,
                        "buildToolsVersion": "35.0.0"
                    },
                    "ios": {
                        "deploymentTarget": "15.1"
                    }
                }
            ],
            [
                "expo-asset",
                {
                    "assets": ["./assets"]
                }
            ],
            "expo-font",
            "expo-router",
            [
                "expo-media-library",
                {
                    photosPermission: `${
                        process.env.APP_NAME || "Cirno Chat"
                    } needs access to your photos for upload.`,
                    savePhotosPermission: `${
                        process.env.APP_NAME || "Cirno Chat"
                    } needs to save images.`,
                    isAccessMediaLocationEnabled: true,
                },
            ],
            [
                "expo-secure-store"
            ],
            [
                "expo-sqlite",
                {
                    "enableFTS": true,
                    "useSQLCipher": true,
                    "android": {
                        // Override the shared configuration for Android
                        "enableFTS": false,
                        "useSQLCipher": false
                    },
                    "ios": {
                        // You can also override the shared configurations for iOS
                        "customBuildFlags": ["-DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_ENABLE_SNAPSHOT=1"]
                    }
                }
            ],
            [
                "expo-av",
                {
                    "microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone."
                }
            ],
            [
                "expo-screen-orientation",
                {
                    "initialOrientation": "DEFAULT"
                }
            ],
            [
                "expo-notifications",
                {
                    "icon": "./assets/favicon.png",
                    "color": "#ffffff",
                    "defaultChannel": "default",
                    "enableBackgroundRemoteNotifications": true,
                }
            ],
            [
                "expo-background-task"
            ]
        ],
        "extra": {
            "eas": {
                "projectId": "9f925f41-6a4e-49ef-876e-89d6e2e09aac"
            }
        }
    }
}
